package my.example.samplegridview;

import my.example.samplegridview.modal.user;

public class currentuserdetail {
	
	public static user currentuser;
	
	public static user temporaryUserLookup(String email , String pw){
		if(email.compareTo("s")==0 && pw.compareTo("s") == 0){
			return new user("Admin","company/customer.jpg","superadmin");
		}
		else if(email.compareTo("admin@gmail.com")==0 && pw.compareTo("admin@gmail.com") == 0){
			return new user("Admin","company/customer.jpg","");
		}
		else if(email.compareTo("maria@gmail.com")==0 && pw.compareTo("maria@gmail.com") == 0){
			return new user("Maria","company/maria.jpg","");
		}
		else if(email.compareTo("guest")==0){
			return new user("guest","","");
		}
		
		return null;
	}

}
